<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../../../css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/list.css"/>
    <link href="https://cdn.bootcdn.net/ajax/libs/bootstrap-table/1.17.1/bootstrap-table.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"
            integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
            crossorigin="anonymous"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-table/1.17.1/bootstrap-table.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/bootstrap-table/1.17.1/locale/bootstrap-table-zh-CN.min.js"></script>
</head>
<body>
<table id="express_table"></table>
<script>
    $(function () {
        $("#express_table").bootstrapTable({
            url: "/express/list/",
            striped: true,
            pageName: 1,
            pagination: true,
            sidePagination: 'server',
            pageSize: 5,
            pageList: [5, 10, 20],
            showRefresh: true,
            queryParams: function (params) {
                var temp = {
                    pageIndex: params.offset,
                    pageSize: params.limit,
                };
                return temp;
            },
            columns: [
                {
                    title: "编号",
                    field: "expressId",
                    sortable: true,
                },
                {
                    title: "快递单号",
                    field: "expressNumber",
                    sortable: true,
                },
                {
                    title: "快递公司",
                    field: "company",
                    sortable: true,
                },
                {
                    title: "收件人姓名",
                    field: "receiverName",
                    sortable: true,
                },
                {
                    title: "收件人电话",
                    field: "receiverPhone",
                    sortable: true,
                },
                {
                    title: "取件码",
                    field: "code",
                    sortable: true,
                },
                {
                    title: "入库时间",
                    field: "inputTime1",
                    sortable: true,
                },
                {
                    title: "出库时间",
                    field: "outputTime1",
                    sortable: true,
                },
                {
                    title: "快件状态",
                    field: "expressStatus",
                    sortable: true,
                },
                {
                    title: "录入人手机号",
                    field: "writerPhone",
                    sortable: true,
                },
            ]

        });
    });
</script>
</body>
</html>
